using System;

namespace Deepcode.Flux.Core.Extensions
{
	/// <summary>
	/// Attribute that indicates the XML Tag that a codon object
	/// is responsible for processing.
	/// </summary>
	[AttributeUsage(AttributeTargets.Class, Inherited=false, AllowMultiple=false)]
	public class XmlCodonNameAttribute : Attribute
	{
		private string _TagName;

		public XmlCodonNameAttribute( string tagname )
		{
			_TagName = tagname;
		}

		public string Name
		{
			get
			{
				return _TagName;
			}
			set
			{
				_TagName = value;
			}
		}
	}
}
